c program to find maximum and minimum number in array